package com.huo.thread.createthreaddemo.springdemo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(Config.class);
        TestService ts = ac.getBean(TestService.class);
        ts.a();
        ts.b();
    }
}
